﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using venta_productos.LogicaNegocio;

namespace venta_productos.Presentacion
{
    /// <summary>
    /// Lógica de interacción para Fconsultarp.xaml
    /// </summary>
    public partial class Fconsultarp : Window
    {
        public Fconsultarp()
        {
            InitializeComponent();
        }
        //boton consulatar 
        private void btn_consultar_Click(object sender, RoutedEventArgs e)
        {
            var prod = manejop.consultar(Convert.ToInt32(tb_cons.Text));
            lbl_resultado.Content = prod.dersc_prod;
        }
        // mostrar los formularios 
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            Fagregar fa = new Fagregar();
            fa.Show();
        }

        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            Fmodicar fm = new Fmodicar();
            fm.Show();
        }

        private void Button_Click_3(object sender, RoutedEventArgs e)
        {
            Feliminar fe = new Feliminar();
            fe.Show();
        }
    }
}
